home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / TPRNTCLR.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  35 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   TPRNTCLR.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NBT1.INC"
  19. COLOR 7, 0
  20. CLS
  21. ? "┌───────────────────────────────────────────────────────────────────────
  22. ? "│ TprintCLEAR ( Row?, Col?, Cols?, V$, Attr? )
  23. ? "├─────────────────────────────────────────────────────────────────────────
  24. ? "│ Uses all the tricks of Tprint then adds the ability to ensure that any
  25. ? "│ columns to the right of V$ are filled with spaces. This makes it the perfect
  26. ? "│ choice for reprinting data screens, etc.
  27. ? "├─────────────────────────────────────────────────────────────────────────────
  28. ? "│ The 'trigger' to change attributes is CHR$(17) or ^PQ then CHR$(Attr?)
  29. ? "│ The test below changes from Attr? = 30 to Attr? = 112 ( ^PQp )
  30. ? "└─────────────────────────────────────────────────────────────────────────────
  31.  
  32. Tprint 11, 1, STRING$( 400, 177 ), 7
  33. TprintCLEAR 13, 21, 40, "hello pworld", 30
  34.  
  35.